import { Module, HttpModule, HttpService } from '@nestjs/common';
import { WxhttpService } from './wxhttp.service';
import { WxredisModule } from '../../tools/wxredis/wxredis.module';

const axConfig = {
  timeout: 15000,
  maxRedirects: 5,
};
@Module({
  imports: [
    HttpModule.register(axConfig),
    WxredisModule,
  ],
  providers: [WxhttpService],
  exports: [WxhttpService],
})
export class WxhttpModule {}
